<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>h5新增标签</title>
</head>
<body>
    <progress max="100" value="10"></progress>
    <nav>hello</nav>
    <div class='nav'>hello</div>

    <div class='container' data-gl='hello'>自定义属性</div>
</body>
<script>
    var d = document.getElementsByClassName('container') //类数组对象

    // console.log(d[0]);
   console.log(d[0].getAttribute('class'))
   console.log(d[0].getAttribute('data-gl'))
</script>
</html>